﻿<Window x:Class="WPFLogin.Login"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        Height="274.3" Width="549.092" 
        Background="{x:Null}" 
        WindowStartupLocation="CenterScreen" 
        ResizeMode="NoResize"
        WindowStyle="None" 
        ShowInTaskbar="False" 
        AllowsTransparency="True"
        MouseDown="Window_MouseDown"
        Loaded="Window_Loaded">

    <Window.Resources>
        <Storyboard x:Key="LoadingAnimation" RepeatBehavior="Forever" SpeedRatio="3">
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="epHover2" Storyboard.TargetProperty="(UIElement.Visibility)">
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:01" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:02" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:04" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="epHover4" Storyboard.TargetProperty="(UIElement.Visibility)">
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:01" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:02" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:03" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:04" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="epHover3" Storyboard.TargetProperty="(UIElement.Visibility)">
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:01" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:02" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:03" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="epHover1" Storyboard.TargetProperty="(UIElement.Visibility)">
                <DiscreteObjectKeyFrame KeyTime="00:00:01" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:04" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>

    <Window.Effect>
        <DropShadowEffect BlurRadius="25" Opacity="0.405" ShadowDepth="20" RenderingBias="Performance"/>
    </Window.Effect>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.772*" />
            <ColumnDefinition Width="0.228*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="0.393*" />
            <RowDefinition Height="0.607*" />
        </Grid.RowDefinitions>

        <Canvas x:Name="Background" Margin="0,0,30.092,31.3" Grid.ColumnSpan="2" Grid.RowSpan="2">
            <Path Data="F1 M 534.000,245.000 C 534.000,251.627 528.627,257.000 522.000,257.000 L 27.001,257.000 C 20.373,257.000 15.001,251.627 15.001,245.000 L 15.001,27.000 C 15.001,20.373 20.373,15.000 27.001,15.000 L 522.000,15.000 C 528.627,15.000 534.000,20.373 534.000,27.000 L 534.000,245.000 Z" Stretch="Fill" Width="519" Height="243">
                <Path.Fill>
                    <LinearGradientBrush MappingMode="Absolute" StartPoint="-208.332,952.442" EndPoint="118.961,562.390">
                        <LinearGradientBrush.Transform>
                            <MatrixTransform Matrix="1.000,0.000,-0.000,-1.000,319.186,893.416" />
                        </LinearGradientBrush.Transform>
                        <GradientStop Offset="0.000" Color="#ff00698d"/>
                        <GradientStop Offset="1.000" Color="#ff1b75bb"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <Path Data="F1 M 534.000,245.000 L 534.000,27.000 C 534.000,20.373 528.627,15.000 522.000,15.000 L 495.790,15.000 C 518.093,85.111 555.962,200.770 437.124,221.195 C 323.772,240.678 130.870,206.203 15.000,181.094 L 15.000,245.000 C 15.000,251.627 20.372,257.000 27.000,257.000 L 522.000,257.000 C 528.627,257.000 534.000,251.627 534.000,245.000 Z" Stretch="Fill" Width="519" Height="243">
                <Path.Fill>
                    <LinearGradientBrush MappingMode="Absolute" StartPoint="-129.701,858.732" EndPoint="118.961,562.389">
                        <LinearGradientBrush.Transform>
                            <MatrixTransform Matrix="1.000,0.000,-0.000,-1.000,319.186,893.416" />
                        </LinearGradientBrush.Transform>
                        <GradientStop Offset="0.012" Color="#ff1b75bb"/>
                        <GradientStop Offset="1.000" Color="#ff213f99"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
        </Canvas>


        <TextBlock x:Name="txtAppName" Margin="26,27.416,5.313,23.888" FontStyle="Italic" FontWeight="Bold" FontSize="36" FontFamily="Fonts/#Cooper Std" Text="App Name" Foreground="#FFA3A4A9">
        	<TextBlock.Effect>
        		<DropShadowEffect/>
        	</TextBlock.Effect>
        </TextBlock>
        <TextBlock x:Name="txtMsg" Margin="26,0,5.313,38.851" FontSize="16" FontWeight="Bold" VerticalAlignment="Bottom" Height="21" FontStyle="Normal" FontFamily="Segoe UI" Grid.Row="1" Foreground="#FFFF0000" Visibility="Hidden"/>
        <Canvas x:Name="grdMainControls" Margin="164.174,-10.594,34.725,0" VerticalAlignment="Top" Height="85.551" Grid.Row="1" >
            <TextBox x:Name="txtUser" Style="{StaticResource txtUserStyle}" Margin="0" TextWrapping="Wrap" Height="25 " Text="" HorizontalAlignment="Stretch" GotFocus="txtUser_GotFocus" LostFocus="txtUser_LostFocus" TextChanged="txtUser_TextChanged" FontFamily="Fonts/#Cooper Std" PreviewKeyDown="txtUser_PreviewKeyDown"/>
            <PasswordBox x:Name="txtPassword" Style="{StaticResource txtPasswordStyle}" Margin="0" HorizontalAlignment="Stretch" LostFocus="txtPassword_LostFocus" GotFocus="txtPassword_GotFocus" Password="" PasswordChanged="txtPassword_PasswordChanged" FontFamily="Fonts/#Cooper Std" Canvas.Top="31.551" PreviewKeyDown="txtPassword_PreviewKeyDown"/>
            <Button x:Name="btnLogin" Click="btnLogin_Click" Style="{StaticResource Button}" Margin="0" Content="Login" FontWeight="Bold" FontFamily="Fonts/#Cooper Std" FontSize="14" FontStyle="Normal" Width="110" Height="25" Canvas.Top="60.551"/>
            <Button x:Name="btnCancel" Click="btnCancel_Click" Style="{StaticResource Button}" Width="110" Margin="0" Content="Cancel" FontWeight="Bold" FontSize="14" FontFamily="Fonts/#Cooper Std" Height="25" Canvas.Left="115" Canvas.Top="60.551"/>
        </Canvas>
        <TextBlock x:Name="txtVersion" Margin="0,8,-56.768,0" FontStyle="Normal" FontWeight="Bold" FontSize="16" VerticalAlignment="Top" Height="21" TextAlignment="Right" Text="Version" Width="229.623" HorizontalAlignment="Right" FontFamily="Fonts/#Cooper Std" Foreground="#FF3F3F3F"/>


        <Grid x:Name="grdLoading" Margin="195.997,6.5,100.175,0" Grid.Row="1" Opacity="0.995" VerticalAlignment="Top" Height="44.832" Visibility="Hidden">
            <Canvas x:Name="CirclesBehind" Margin="8,8,11.764,11.423">
                <Ellipse Stroke="{x:Null}" x:Name="ep1" Width="25.409" Fill="#FF08547E" Height="25.409"/>
                <Ellipse Stroke="{x:Null}" x:Name="ep2" Width="25.408" Fill="#FF08547E" Height="25.409" Canvas.Left="27.614"/>
                <Ellipse Stroke="{x:Null}" x:Name="ep3" Fill="#FF08547E" Width="25.121" Height="25.409" Canvas.Left="55.228"/>
                <Ellipse Stroke="{x:Null}" x:Name="ep4" Width="25.409" Fill="#FF08547E" Height="25.409" Canvas.Left="82.554"/>
            </Canvas>
            <Canvas x:Name="CirclesAbove" Margin="8,8,11.764,11.423">
                <Ellipse Stroke="{x:Null}" x:Name="epHover1" Width="25.409" Opacity="1" Fill="#FF3CB2CD" Height="25.409"/>
                <Ellipse Stroke="{x:Null}" x:Name="epHover2" Width="25.408" Opacity="1" Fill="#FF3CB2CD" Height="25.409" Canvas.Left="27.614"/>
                <Ellipse Stroke="{x:Null}" x:Name="epHover3" Opacity="1" Fill="#FF3CB2CD" Width="25.121" Height="25.409" Canvas.Left="55.228"/>
                <Ellipse Stroke="{x:Null}" x:Name="epHover4" Width="25.409" Opacity="1" Fill="#FF3CB2CD" Height="25.409" Canvas.Left="82.554"/>
            </Canvas>
        </Grid>
    </Grid>
</Window>
